package com.bkgy.modular.upAndDownLine.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.upAndDownLine.service.UpAndDownLine1720Service;
import com.bkgy.modular.upAndDownLine.service.UpAndDownLine2130Service;
import com.bkgy.modular.upAndDownLine.service.UpAndDownLine642Service;
import com.bkgy.modular.upAndDownLine.service.UpAndDownLineC621Service;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhuHongKai
 * @version 1.0
 * @ClassName upAndDownLineController
 * @date 2023/1/4 9:45
 * 上下线接口
 */
@RestController
@RequestMapping("/upAndDownLine")
public class upAndDownLineController {

    @Resource
    private UpAndDownLine1720Service upAndDownLine1720Service;

    @Resource
    private UpAndDownLine2130Service upAndDownLine2130Service;

    @Resource
    private UpAndDownLine642Service upAndDownLine642Service;

    @Resource
    private UpAndDownLineC621Service upAndDownLineC621Service;

    /**
     * 获取1720上下线
     * @param jsonObject
     * @return
     */
    @PostMapping("/findUpAndDownLine1720")
    public ResultData findUpAndDownLine1720(@RequestBody JSONObject jsonObject) {
        return upAndDownLine1720Service.findUpAndDownLine1720(jsonObject);
    }

    /**
     * 获取2130上下线
     * @param jsonObject
     * @return
     */
    @PostMapping("/findUpAndDownLine2130")
    public ResultData findUpAndDownLine2130(@RequestBody JSONObject jsonObject) {
        return upAndDownLine2130Service.findUpAndDownLine2130(jsonObject);
    }

    /**
     * 642上下线
     * @param jsonObject
     * @return
     */
    @PostMapping("/findUpAndDownLine642")
    public ResultData findUpAndDownLine642(@RequestBody JSONObject jsonObject) {
        return upAndDownLine642Service.findUpAndDownLine642(jsonObject);
    }

    @PostMapping("/findUpDownLineC621")
    public ResultData findUpDownLineC621(@RequestBody JSONObject jsonObject) {
        return upAndDownLineC621Service.findUpDownLineC621(jsonObject);
    }
}
